<?php
namespace App\Logic\ZiNiao\Api;

use App\Libs\ZiNiao\RequireOpenClient;
use App\Libs\ZiNiao\RequireRefreshUserToken;
class RefreshUserToken
{
    /**
     * 获取当前用户token
     * @param  array $bizContent ['userRefreshToken' => "XXXXXX"]
     * @return int
     */
    public function exe($bizContent)
    {
        $openClient = RequireOpenClient::getInstance();
        $requireUserToken = new RequireRefreshUserToken();
        $data = $requireUserToken->refreshUserToken($openClient,$bizContent);
        return $data;
    }
}
